<?php

namespace common\validate;


class FixData extends BaseValidate
{
    // 验证规则
    protected $rule = [];

    // Fields 验证场景定义
    public function sceneFields()
    {
        return $this;
    }

    // Find 验证场景定义
    public function sceneFixProjectMemberRole()
    {
        return $this->append('data.role_code', 'require');
    }

    public function sceneFixEntityStatus()
    {
        return $this->append('param.filter', 'require|array');

    }

    // FixEntityIsOutsourceStatus 验证场景定义
    public function sceneFixEntityIsOutsourceStatus()
    {
        return $this
            ->append('param.filter', 'require|array')
            ->append('param.filter.project_id', 'require|integer')
            ->append('param.is_async', 'require|in:yes,no');
    }

    // FixEntityStepCategoryStatus 验证场景定义
    public function sceneFixEntityStepCategoryStatus()
    {
        return $this->append('param.filter', 'require|array');
    }

    // SyncShotEpisodeRelationToAsset 验证场景定义
    public function sceneSyncShotEpisodeRelationToAsset()
    {
        return $this
            ->append('param.filter', 'require|array')
            ->append('param.filter.project_id', 'require|integer');
    }

    // FixProjectMemberDuplicateData 验证场景定义
    public function sceneFixProjectMemberDuplicateData()
    {
        return $this
            ->append('param.filter', 'require|array')
            ->append('param.filter.project_id', 'require|integer');
    }
}
